import React from 'react';
import { Table } from 'antd';
import type { ColumnsType } from 'antd/es/table';

interface DataType {
  key: string;
  fourLevel: number;
  sixLevel: number;
}

const columns: ColumnsType<DataType> = [
  {
    title: '四级',
    dataIndex: 'fourLevel',
    key: 'fourLevel',
  },
  {
    title: '六级',
    dataIndex: 'sixLevel',
    key: 'sixLevel',
  },
];

const data: DataType[] = [
  {
    key: '1',
    fourLevel: 12,
    sixLevel: 11,
  },
];

const FourSix: React.FC<any> = () => {
  return (
    <div>
      <Table
        columns={columns}
        dataSource={data}
        pagination={{ hideOnSinglePage: true }}
      />
    </div>
  );
};

export default FourSix;
